import request from "@/utils/request"
import store from '../store'

export default {
    
    
    findAll(){
        return request({
            url: 'http://39.106.83.184:9001/user/findAll?token='+store.getters.token,
            method: 'get',
        })    
    },
    add(entity){
        entity.token = store.getters.token
        return request(
            {
                url: 'http://39.106.83.184:9001/user/add?token='+store.getters.token,
                data: entity,
                method: 'post'
            }
        );
    }
}